package com.liukai.exam.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 试卷管理
 * </p>
 *
 * @author liu kai
 * @since 2021-02-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("EXAM_MANAGE")
@ApiModel(value="ExamManage对象", description="试卷管理")
public class ExamManage implements Serializable {

    private static final long serialVersionUID = 1L;

        @ApiModelProperty(value = "试卷编号")
        @TableField("EXAM_ID")
    private Long examId;

        @ApiModelProperty(value = "班级编号")
        @TableField("CLASS_ID")
    private Integer classId;

        @ApiModelProperty(value = "教师账号(来自用户表的user_id)")
        @TableId(value = "TEACHER_ID", type = IdType.ID_WORKER)
    private Long teacherId;

        @ApiModelProperty(value = "试卷名称")
        @TableField("EXAM_NAME")
    private String examName;

        @ApiModelProperty(value = "试卷描述")
        @TableField("EXAM_DES")
    private String examDes;

        @ApiModelProperty(value = "答题时间（分钟）")
        @TableField("TOTAL_TIME")
    private Integer totalTime;

        @ApiModelProperty(value = "开始时间")
        @TableField("START_DATE")
    private Date startDate;

        @ApiModelProperty(value = "考试类型（1开卷、0闭卷）")
        @TableField("EXAM_TYPE")
    private Integer examType;

        @ApiModelProperty(value = "总分")
        @TableField("TOTAL_SCORE")
    private Long totalScore;

        @ApiModelProperty(value = "试卷平均分")
        @TableField("AVG_SCORE")
    private Double avgScore;

        @ApiModelProperty(value = "考生须知")
        @TableField("TIP")
    private String tip;


}
